package com.jrh.biz.feature;

import java.util.List;

import com.jrh.domain.common.Page;
import com.jrh.domain.entity.Feature;

public interface FeatureService {

    public static final String SPLIT_STRING      = "\\|";
    public static final String SPLIT_STRING_REAL = "|";

    public Page<Feature> listFeatureByCondition(String categoryId, Integer start, Integer pageSize);

    public void createFeature(Feature feature);

    public void deleteFeature(long id);

    public void updateFeature(Feature feature);

    public Feature getFeatureById(long id);

    public List<Feature> listFeatureDetailByCategory(String categoryId);

    public List<Feature> listFeatureDetailByCatAndProd(String categoryId, String productId);

    public List<Feature> listFeatureDetailByProduct(Long pId);
}
